package com.haoan.index.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haoan.common.annotation.Excel;
import com.haoan.index.base.BaseEntity;

/**
 * 公告/新闻资讯对象 web_announcement
 *
 * @author autoGen
 * @date 2025-01-03
 */
@Data
@Schema(description = "公告/新闻资讯")
@TableName("web_announcement")
public class Announcement extends BaseEntity implements Serializable
        {
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "PK_web_announcement")
    @ApiParam(name = "id",value = "PK_web_announcement")
    private Long id;

    /** $column.columnComment */
    @Schema(description = "公告/新闻资讯-${comment}")
    @ApiParam(name = "type",value = "公告/新闻资讯-${comment}")
    @Excel(name = "${comment}" , readConverterExp = "$column.readConverterExp()")
    @TableField(value = "`type`")
    private String type;

    /** 标题 */
    @Schema(description = "公告/新闻资讯-标题")
    @ApiParam(name = "title",value = "公告/新闻资讯-标题")
    @Excel(name = "标题")
    @TableField(value = "`title`")
    private String title;

    /** 点赞数 */
    @Schema(description = "公告/新闻资讯-点赞数")
    @ApiParam(name = "likes",value = "公告/新闻资讯-点赞数")
    @Excel(name = "点赞数")
    @TableField(value = "`likes`")
    private Long likes;

    /** 图片 */
    @Schema(description = "公告/新闻资讯-图片")
    @ApiParam(name = "picture",value = "公告/新闻资讯-图片")
    @Excel(name = "图片")
    @TableField(value = "`picture`")
    private String picture;

    /** 简介 */
    @Schema(description = "公告/新闻资讯-简介")
    @ApiParam(name = "brief",value = "公告/新闻资讯-简介")
    @Excel(name = "简介")
    @TableField(value = "`brief`")
    private String brief;

    /** 详情 */
    @Schema(description = "公告/新闻资讯-详情")
    @ApiParam(name = "detail",value = "公告/新闻资讯-详情")
    @Excel(name = "详情")
    @TableField(value = "`detail`")
    private String detail;

    /** 创建时间 */
    @TableField(value = "`create_time`")
    private Date createTime;

    /** 创建人 */
    @TableField(value = "`create_by`", fill = FieldFill.INSERT)
    private String createBy;

    /** 修改时间 */
    @TableField(value = "`update_time`")
    private Date updateTime;

    /** 修改人 */
    @TableField(value = "`update_by`", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    /** 有效标志1有效0无效(无效数据任何地方不可见) */
    @Schema(description = "公告/新闻资讯-有效标志1有效0无效(无效数据任何地方不可见)")
    @ApiParam(name = "valiFlag",value = "公告/新闻资讯-有效标志1有效0无效(无效数据任何地方不可见)")
    @Excel(name = "有效标志1有效0无效(无效数据任何地方不可见)")
    @TableField(value = "`vali_flag`")
    private Integer valiFlag;


}

